<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Model\Admin\ProductType;
use Illuminate\Http\Request;

class ProductTypeController extends Controller
{
    public function index()
    {
        $types = ProductType::paginate(10);
        return view('admin.product.type.index', compact('types'));
    }

    public function store()
    {
        ProductType::create(['type_name'=>request()->type_name]);
        return back();
    }
}
